#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

myWidget::myWidget(QWidget *parent): QWidget(parent)
{
    setMouseTracking(true);
}

void myWidget::mouseMoveEvent(QMouseEvent *)
{
    setCursor(Qt::ClosedHandCursor);
}

void myWidget::enterEvent(QEnterEvent *)
{
    setCursor(Qt::ClosedHandCursor);
}

void myWidget::leaveEvent(QEvent *)
{
    setCursor(Qt::ArrowCursor);
}
